package com.bnzj.core.web.security.handler;

import org.springframework.security.core.Authentication;

/**
 * @ClassName AuthenticationParseFilter
 * @Description AuthenticationToken 解析器，不同类型token实现类不同
 * @Author
 * @Date 2020/3/3
 * @Version V1.0
 **/
public interface AuthenticationParseFilter {
    /**
     * 获取 username
     * @param authentication
     * @return
     */
    String getUserName(Authentication authentication);
}
